const { ccclass, property } = cc._decorator;

@ccclass
export default class lobby_scrollmsg_itemTs extends cc.Component {

    @property(cc.Label)
    labelData: cc.Label = null;

    @property(cc.Sprite)
    imageBg: cc.Sprite = null;

    public setInfo(data) {
        this.labelData.string = data;
        this.labelData._forceUpdateRenderData(true);
        this.imageBg.node.height = this.labelData.node.height;
        this.node.height = this.imageBg.node.height;
    }
}
